package cn.dylan.pet.domain;

import cn.dylan.basic.domain.BaseDomain;
import cn.dylan.org.domain.Shop;
import cn.dylan.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class Pet extends BaseDomain {
    private String name;
    private BigDecimal costprice;
    private BigDecimal saleprice;
    private Long type_id;
    private List<PetType> children;

    private PetType type;

    private String resources;
    private Integer state;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date onsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createtime = new Date();

    private Long shop_id;
    private Shop shop;

    private Long user_id;
    private User user;

    // 对应寻主id
    private Long search_master_msg_id;

    // 接受数据
    private PetDetail petDetail;

}
